<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/8/25
 * Time: 10:16
 */

return [
    'database' => [
        // 这是 goods 组件的 默认的连接属性
        'connection' => [
            // 定义数据类连接类型
            'type' => 'mysql',// sqlserver,oracle
            'name' => 'goods',
        ],
        // 这是连接属性值
        'goods' => [
            'prefix' => 'data_',
            // 'host' => '192.163.1.1',
        ],

        //模型观察者
        /*'observes' => [
            'Category' => 'CategoryObserver'
        ],*/
    ],

    'observes' => [
        'observers' => [
            'Category' => 'CategoryObserver'
            //'Goods' => 'GoodsObserver'
        ],
        'namespace' => [
            'model' => 'Zch\LishangLaravelShop\Data\Goods\Models',
            'observe' => 'Zch\LishangLaravelShop\Data\Goods\Observers',
        ]
    ],
];
